package com.tyut.musicdreamer.service.user.exception;

import com.tyut.musicdreamer.framework.starter.convention.exception.AbstractException;
import com.tyut.musicdreamer.service.user.enums.UserErrorCode;
import lombok.Getter;

/**
 * 用户服务业务异常类
 */
@Getter
public class UserBusinessException extends AbstractException {

    public UserBusinessException(String message) {
        super(message);
    }

    public UserBusinessException(UserErrorCode errorCode) {
        super(errorCode.code(), errorCode.message());
    }

    public UserBusinessException(UserErrorCode errorCode, String message) {
        super(errorCode.code(), message);
    }

    public UserBusinessException(UserErrorCode errorCode, Throwable cause) {
        super(errorCode.code(), errorCode.message(), cause);
    }

    public UserBusinessException(UserErrorCode errorCode, String message, Throwable cause) {
        super(errorCode.code(), message, cause);
    }
} 